package com.example.administrator.foodrowfresh.jiao.modle;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import org.json.JSONException;
import org.json.JSONObject;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2016/5/4.
 */
public class PromotionItemGVModel {


    /**
     * success : 1
     * data : {"list":[{"title":{"id":"526","name":"粽享滋味","endtime":"2016-06-01 00:00:00","image":""},"product":[{"now_price":9,"old_price":9.8,"price_name":"食行价","name":"真真老老豆沙粽 160g*2/包","wcid":526,"id":2865,"display":0,"pvId":2860,"weight":"包","pv_weight":0,"p_standard":true,"pvper_price":9,"image":"http://images4sh-app.34580.com/images/ProductImages/SH_Image_8502_jpeg_290.jpeg"},{"now_price":13.8,"old_price":15,"price_name":"食行价","name":"真真老老蛋黄肉粽 160g*2/包","wcid":526,"id":2866,"display":0,"pvId":2861,"weight":"包","pv_weight":0,"p_standard":true,"pvper_price":13.8,"image":"http://images4sh-app.34580.com/images/ProductImages/SH_Image_8503_jpeg_290.jpeg"},{"now_price":11.5,"old_price":18,"price_name":"食行价","name":"真真老老栗子肉粽 160g*2/包","wcid":526,"id":2867,"display":0,"pvId":2862,"weight":"包","pv_weight":0,"p_standard":true,"pvper_price":11.5,"image":"http://images4sh-app.34580.com/images/ProductImages/SH_Image_8501_jpeg_290.jpeg"},{"now_price":9.9,"old_price":15.6,"price_name":"食行价","name":"真真老老紫薯粽 125g*2/包","wcid":526,"id":2868,"display":0,"pvId":2863,"weight":"包","pv_weight":0,"p_standard":true,"pvper_price":9.9,"image":"http://images4sh-app.34580.com/images/ProductImages/SH_Image_8506_jpeg_290.jpeg"},{"now_price":11.5,"old_price":16.8,"price_name":"食行价","name":"真真老老蛋黄肉粽 125g*2/包","wcid":526,"id":2869,"display":0,"pvId":2864,"weight":"包","pv_weight":0,"p_standard":true,"pvper_price":11.5,"image":"http://images4sh-app.34580.com/images/ProductImages/SH_Image_8691_jpeg_290.jpeg"},{"now_price":11.5,"old_price":12.5,"price_name":"食行价","name":"真真老老栗子肉粽 125g*2/包","wcid":526,"id":2870,"display":0,"pvId":2865,"weight":"包","pv_weight":0,"p_standard":true,"pvper_price":11.5,"image":"http://images4sh-app.34580.com/images/ProductImages/SH_Image_8508_jpeg_290.jpeg"},{"now_price":7.8,"old_price":8.8,"price_name":"食行价","name":"真真老老肉粽 125g*2/包","wcid":526,"id":2871,"display":0,"pvId":2866,"weight":"包","pv_weight":0,"p_standard":true,"pvper_price":7.8,"image":"http://images4sh-app.34580.com/images/ProductImages/SH_Image_8505_jpeg_290.jpeg"},{"now_price":7.8,"old_price":9.9,"price_name":"食行价","name":"真真老老豆沙粽 125g*2/包","wcid":526,"id":2872,"display":0,"pvId":2867,"weight":"包","pv_weight":0,"p_standard":true,"pvper_price":7.8,"image":"http://images4sh-app.34580.com/images/ProductImages/SH_Image_8949_jpeg_290.jpeg"},{"now_price":7.8,"old_price":8.6,"price_name":"食行价","name":"真真老老蜜枣粽 125g*2/包","wcid":526,"id":2873,"display":0,"pvId":2868,"weight":"包","pv_weight":0,"p_standard":true,"pvper_price":7.8,"image":"http://images4sh-app.34580.com/images/ProductImages/SH_Image_8507_jpeg_290.jpeg"},{"now_price":7.8,"old_price":10.8,"price_name":"食行价","name":"真真老老八宝香粽 125g*2/包","wcid":526,"id":2874,"display":0,"pvId":2869,"weight":"包","pv_weight":0,"p_standard":true,"pvper_price":7.8,"image":"http://images4sh-app.34580.com/images/ProductImages/SH_Image_8509_jpeg_290.jpeg"},{"now_price":9,"old_price":10.8,"price_name":"食行价","name":"青稞红豆粽100g/袋","wcid":526,"id":2904,"display":0,"pvId":2899,"weight":"袋","pv_weight":0,"p_standard":true,"pvper_price":9,"image":"http://images4sh-app.34580.com/images/ProductImages/SH_Image_8876_jpeg_290.jpeg"},{"now_price":9,"old_price":10.8,"price_name":"食行价","name":"青稞蜜枣粽100g/袋","wcid":526,"id":2906,"display":0,"pvId":2901,"weight":"袋","pv_weight":0,"p_standard":true,"pvper_price":9,"image":"http://images4sh-app.34580.com/images/ProductImages/SH_Image_8882_jpeg_290.jpeg"},{"now_price":9,"old_price":10.8,"price_name":"食行价","name":"青稞鲜肉粽100g/袋","wcid":526,"id":2907,"display":0,"pvId":2902,"weight":"袋","pv_weight":0,"p_standard":true,"pvper_price":9,"image":"http://images4sh-app.34580.com/images/ProductImages/SH_Image_8884_jpeg_290.jpeg"},{"now_price":48,"old_price":55,"price_name":"食行价","name":"真真老老福礼真味礼盒 800g/盒","wcid":526,"id":2930,"display":0,"pvId":2925,"weight":"盒","pv_weight":800,"p_standard":true,"pvper_price":48,"image":"http://images4sh-app.34580.com/images/ProductImages/SH_Image_8933_jpeg_290.jpeg"},{"now_price":75,"old_price":85,"price_name":"食行价","name":"真真老老真传全家乐礼盒 1.28kg/盒","wcid":526,"id":2931,"display":0,"pvId":2926,"weight":"盒","pv_weight":0,"p_standard":true,"pvper_price":75,"image":"http://images4sh-app.34580.com/images/ProductImages/SH_Image_8936_jpeg_290.jpeg"},{"now_price":85,"old_price":95,"price_name":"食行价","name":"真真老老真意礼盒 1.4kg/盒","wcid":526,"id":2932,"display":0,"pvId":2927,"weight":"盒","pv_weight":0,"p_standard":true,"pvper_price":85,"image":"http://images4sh-app.34580.com/images/ProductImages/SH_Image_19686_jpeg_290.jpeg"},{"now_price":55,"old_price":65,"price_name":"食行价","name":"真真老老真满堂礼盒1.12kg/盒","wcid":526,"id":2935,"display":0,"pvId":2930,"weight":"盒","pv_weight":0,"p_standard":true,"pvper_price":55,"image":"http://images4sh-app.34580.com/images/ProductImages/SH_Image_9138_jpeg_290.jpeg"},{"now_price":9,"old_price":10.8,"price_name":"食行价","name":"青稞豌豆粽100g/袋","wcid":526,"id":4928,"display":0,"pvId":4886,"weight":"袋","pv_weight":0,"p_standard":true,"pvper_price":9,"image":"http://images4sh-app.34580.com/images/ProductImages/SH_Image_19914_jpeg_290.jpeg"},{"now_price":10,"old_price":15,"price_name":"食行价","name":"青稞苦荞粽100g/袋","wcid":526,"id":4929,"display":0,"pvId":4887,"weight":"袋","pv_weight":0,"p_standard":true,"pvper_price":10,"image":"http://images4sh-app.34580.com/images/ProductImages/SH_Image_19916_jpeg_290.jpeg"},{"now_price":18,"old_price":22,"price_name":"食行价","name":"青稞人参果粽100g/袋","wcid":526,"id":4930,"display":0,"pvId":4888,"weight":"袋","pv_weight":0,"p_standard":true,"pvper_price":18,"image":"http://images4sh-app.34580.com/images/ProductImages/SH_Image_19918_jpeg_290.jpeg"},{"now_price":18,"old_price":22,"price_name":"食行价","name":"青稞藜麦粽100g/袋","wcid":526,"id":4931,"display":0,"pvId":4889,"weight":"袋","pv_weight":0,"p_standard":true,"pvper_price":18,"image":"http://images4sh-app.34580.com/images/ProductImages/SH_Image_19920_jpeg_290.jpeg"},{"now_price":19,"old_price":23,"price_name":"食行价","name":"青稞牦牛肉粽100g/袋","wcid":526,"id":4932,"display":0,"pvId":4890,"weight":"袋","pv_weight":0,"p_standard":true,"pvper_price":19,"image":"http://images4sh-app.34580.com/images/ProductImages/SH_Image_19922_jpeg_290.jpeg"},{"now_price":99,"old_price":108,"price_name":"食行价","name":"青稞粽礼盒1372g/袋","wcid":526,"id":4933,"display":0,"pvId":4891,"weight":"盒","pv_weight":0,"p_standard":true,"pvper_price":99,"image":"http://images4sh-app.34580.com/images/ProductImages/SH_Image_19924_jpeg_290.jpeg"}]}]}
     */

    private int success;
    private DataBean data;

    public static PromotionItemGVModel objectFromData(String str) {

        return new Gson().fromJson(str, PromotionItemGVModel.class);
    }

    public static PromotionItemGVModel objectFromData(String str, String key) {

        try {
            JSONObject jsonObject = new JSONObject(str);

            return new Gson().fromJson(jsonObject.getString(str), PromotionItemGVModel.class);
        } catch (JSONException e) {
            e.printStackTrace();
        }

        return null;
    }

    public static List<PromotionItemGVModel> arrayPromotionItemGVModelFromData(String str) {

        Type listType = new TypeToken<ArrayList<PromotionItemGVModel>>() {
        }.getType();

        return new Gson().fromJson(str, listType);
    }

    public static List<PromotionItemGVModel> arrayPromotionItemGVModelFromData(String str, String key) {

        try {
            JSONObject jsonObject = new JSONObject(str);
            Type listType = new TypeToken<ArrayList<PromotionItemGVModel>>() {
            }.getType();

            return new Gson().fromJson(jsonObject.getString(str), listType);

        } catch (JSONException e) {
            e.printStackTrace();
        }

        return new ArrayList();


    }

    public int getSuccess() {
        return success;
    }

    public void setSuccess(int success) {
        this.success = success;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * title : {"id":"526","name":"粽享滋味","endtime":"2016-06-01 00:00:00","image":""}
         * product : [{"now_price":9,"old_price":9.8,"price_name":"食行价","name":"真真老老豆沙粽 160g*2/包","wcid":526,"id":2865,"display":0,"pvId":2860,"weight":"包","pv_weight":0,"p_standard":true,"pvper_price":9,"image":"http://images4sh-app.34580.com/images/ProductImages/SH_Image_8502_jpeg_290.jpeg"},{"now_price":13.8,"old_price":15,"price_name":"食行价","name":"真真老老蛋黄肉粽 160g*2/包","wcid":526,"id":2866,"display":0,"pvId":2861,"weight":"包","pv_weight":0,"p_standard":true,"pvper_price":13.8,"image":"http://images4sh-app.34580.com/images/ProductImages/SH_Image_8503_jpeg_290.jpeg"},{"now_price":11.5,"old_price":18,"price_name":"食行价","name":"真真老老栗子肉粽 160g*2/包","wcid":526,"id":2867,"display":0,"pvId":2862,"weight":"包","pv_weight":0,"p_standard":true,"pvper_price":11.5,"image":"http://images4sh-app.34580.com/images/ProductImages/SH_Image_8501_jpeg_290.jpeg"},{"now_price":9.9,"old_price":15.6,"price_name":"食行价","name":"真真老老紫薯粽 125g*2/包","wcid":526,"id":2868,"display":0,"pvId":2863,"weight":"包","pv_weight":0,"p_standard":true,"pvper_price":9.9,"image":"http://images4sh-app.34580.com/images/ProductImages/SH_Image_8506_jpeg_290.jpeg"},{"now_price":11.5,"old_price":16.8,"price_name":"食行价","name":"真真老老蛋黄肉粽 125g*2/包","wcid":526,"id":2869,"display":0,"pvId":2864,"weight":"包","pv_weight":0,"p_standard":true,"pvper_price":11.5,"image":"http://images4sh-app.34580.com/images/ProductImages/SH_Image_8691_jpeg_290.jpeg"},{"now_price":11.5,"old_price":12.5,"price_name":"食行价","name":"真真老老栗子肉粽 125g*2/包","wcid":526,"id":2870,"display":0,"pvId":2865,"weight":"包","pv_weight":0,"p_standard":true,"pvper_price":11.5,"image":"http://images4sh-app.34580.com/images/ProductImages/SH_Image_8508_jpeg_290.jpeg"},{"now_price":7.8,"old_price":8.8,"price_name":"食行价","name":"真真老老肉粽 125g*2/包","wcid":526,"id":2871,"display":0,"pvId":2866,"weight":"包","pv_weight":0,"p_standard":true,"pvper_price":7.8,"image":"http://images4sh-app.34580.com/images/ProductImages/SH_Image_8505_jpeg_290.jpeg"},{"now_price":7.8,"old_price":9.9,"price_name":"食行价","name":"真真老老豆沙粽 125g*2/包","wcid":526,"id":2872,"display":0,"pvId":2867,"weight":"包","pv_weight":0,"p_standard":true,"pvper_price":7.8,"image":"http://images4sh-app.34580.com/images/ProductImages/SH_Image_8949_jpeg_290.jpeg"},{"now_price":7.8,"old_price":8.6,"price_name":"食行价","name":"真真老老蜜枣粽 125g*2/包","wcid":526,"id":2873,"display":0,"pvId":2868,"weight":"包","pv_weight":0,"p_standard":true,"pvper_price":7.8,"image":"http://images4sh-app.34580.com/images/ProductImages/SH_Image_8507_jpeg_290.jpeg"},{"now_price":7.8,"old_price":10.8,"price_name":"食行价","name":"真真老老八宝香粽 125g*2/包","wcid":526,"id":2874,"display":0,"pvId":2869,"weight":"包","pv_weight":0,"p_standard":true,"pvper_price":7.8,"image":"http://images4sh-app.34580.com/images/ProductImages/SH_Image_8509_jpeg_290.jpeg"},{"now_price":9,"old_price":10.8,"price_name":"食行价","name":"青稞红豆粽100g/袋","wcid":526,"id":2904,"display":0,"pvId":2899,"weight":"袋","pv_weight":0,"p_standard":true,"pvper_price":9,"image":"http://images4sh-app.34580.com/images/ProductImages/SH_Image_8876_jpeg_290.jpeg"},{"now_price":9,"old_price":10.8,"price_name":"食行价","name":"青稞蜜枣粽100g/袋","wcid":526,"id":2906,"display":0,"pvId":2901,"weight":"袋","pv_weight":0,"p_standard":true,"pvper_price":9,"image":"http://images4sh-app.34580.com/images/ProductImages/SH_Image_8882_jpeg_290.jpeg"},{"now_price":9,"old_price":10.8,"price_name":"食行价","name":"青稞鲜肉粽100g/袋","wcid":526,"id":2907,"display":0,"pvId":2902,"weight":"袋","pv_weight":0,"p_standard":true,"pvper_price":9,"image":"http://images4sh-app.34580.com/images/ProductImages/SH_Image_8884_jpeg_290.jpeg"},{"now_price":48,"old_price":55,"price_name":"食行价","name":"真真老老福礼真味礼盒 800g/盒","wcid":526,"id":2930,"display":0,"pvId":2925,"weight":"盒","pv_weight":800,"p_standard":true,"pvper_price":48,"image":"http://images4sh-app.34580.com/images/ProductImages/SH_Image_8933_jpeg_290.jpeg"},{"now_price":75,"old_price":85,"price_name":"食行价","name":"真真老老真传全家乐礼盒 1.28kg/盒","wcid":526,"id":2931,"display":0,"pvId":2926,"weight":"盒","pv_weight":0,"p_standard":true,"pvper_price":75,"image":"http://images4sh-app.34580.com/images/ProductImages/SH_Image_8936_jpeg_290.jpeg"},{"now_price":85,"old_price":95,"price_name":"食行价","name":"真真老老真意礼盒 1.4kg/盒","wcid":526,"id":2932,"display":0,"pvId":2927,"weight":"盒","pv_weight":0,"p_standard":true,"pvper_price":85,"image":"http://images4sh-app.34580.com/images/ProductImages/SH_Image_19686_jpeg_290.jpeg"},{"now_price":55,"old_price":65,"price_name":"食行价","name":"真真老老真满堂礼盒1.12kg/盒","wcid":526,"id":2935,"display":0,"pvId":2930,"weight":"盒","pv_weight":0,"p_standard":true,"pvper_price":55,"image":"http://images4sh-app.34580.com/images/ProductImages/SH_Image_9138_jpeg_290.jpeg"},{"now_price":9,"old_price":10.8,"price_name":"食行价","name":"青稞豌豆粽100g/袋","wcid":526,"id":4928,"display":0,"pvId":4886,"weight":"袋","pv_weight":0,"p_standard":true,"pvper_price":9,"image":"http://images4sh-app.34580.com/images/ProductImages/SH_Image_19914_jpeg_290.jpeg"},{"now_price":10,"old_price":15,"price_name":"食行价","name":"青稞苦荞粽100g/袋","wcid":526,"id":4929,"display":0,"pvId":4887,"weight":"袋","pv_weight":0,"p_standard":true,"pvper_price":10,"image":"http://images4sh-app.34580.com/images/ProductImages/SH_Image_19916_jpeg_290.jpeg"},{"now_price":18,"old_price":22,"price_name":"食行价","name":"青稞人参果粽100g/袋","wcid":526,"id":4930,"display":0,"pvId":4888,"weight":"袋","pv_weight":0,"p_standard":true,"pvper_price":18,"image":"http://images4sh-app.34580.com/images/ProductImages/SH_Image_19918_jpeg_290.jpeg"},{"now_price":18,"old_price":22,"price_name":"食行价","name":"青稞藜麦粽100g/袋","wcid":526,"id":4931,"display":0,"pvId":4889,"weight":"袋","pv_weight":0,"p_standard":true,"pvper_price":18,"image":"http://images4sh-app.34580.com/images/ProductImages/SH_Image_19920_jpeg_290.jpeg"},{"now_price":19,"old_price":23,"price_name":"食行价","name":"青稞牦牛肉粽100g/袋","wcid":526,"id":4932,"display":0,"pvId":4890,"weight":"袋","pv_weight":0,"p_standard":true,"pvper_price":19,"image":"http://images4sh-app.34580.com/images/ProductImages/SH_Image_19922_jpeg_290.jpeg"},{"now_price":99,"old_price":108,"price_name":"食行价","name":"青稞粽礼盒1372g/袋","wcid":526,"id":4933,"display":0,"pvId":4891,"weight":"盒","pv_weight":0,"p_standard":true,"pvper_price":99,"image":"http://images4sh-app.34580.com/images/ProductImages/SH_Image_19924_jpeg_290.jpeg"}]
         */

        private List<ListBean> list;

        public static DataBean objectFromData(String str) {

            return new Gson().fromJson(str, DataBean.class);
        }

        public static DataBean objectFromData(String str, String key) {

            try {
                JSONObject jsonObject = new JSONObject(str);

                return new Gson().fromJson(jsonObject.getString(str), DataBean.class);
            } catch (JSONException e) {
                e.printStackTrace();
            }

            return null;
        }

        public static List<DataBean> arrayDataBeanFromData(String str) {

            Type listType = new TypeToken<ArrayList<DataBean>>() {
            }.getType();

            return new Gson().fromJson(str, listType);
        }

        public static List<DataBean> arrayDataBeanFromData(String str, String key) {

            try {
                JSONObject jsonObject = new JSONObject(str);
                Type listType = new TypeToken<ArrayList<DataBean>>() {
                }.getType();

                return new Gson().fromJson(jsonObject.getString(str), listType);

            } catch (JSONException e) {
                e.printStackTrace();
            }

            return new ArrayList();


        }

        public List<ListBean> getList() {
            return list;
        }

        public void setList(List<ListBean> list) {
            this.list = list;
        }

        public static class ListBean {
            /**
             * id : 526
             * name : 粽享滋味
             * endtime : 2016-06-01 00:00:00
             * image :
             */

            private TitleBean title;
            /**
             * now_price : 9.0
             * old_price : 9.8
             * price_name : 食行价
             * name : 真真老老豆沙粽 160g*2/包
             * wcid : 526
             * id : 2865
             * display : 0
             * pvId : 2860
             * weight : 包
             * pv_weight : 0.0
             * p_standard : true
             * pvper_price : 9.0
             * image : http://images4sh-app.34580.com/images/ProductImages/SH_Image_8502_jpeg_290.jpeg
             */

            private List<ProductBean> product;

            public static ListBean objectFromData(String str) {

                return new Gson().fromJson(str, ListBean.class);
            }

            public static ListBean objectFromData(String str, String key) {

                try {
                    JSONObject jsonObject = new JSONObject(str);

                    return new Gson().fromJson(jsonObject.getString(str), ListBean.class);
                } catch (JSONException e) {
                    e.printStackTrace();
                }

                return null;
            }

            public static List<ListBean> arrayListBeanFromData(String str) {

                Type listType = new TypeToken<ArrayList<ListBean>>() {
                }.getType();

                return new Gson().fromJson(str, listType);
            }

            public static List<ListBean> arrayListBeanFromData(String str, String key) {

                try {
                    JSONObject jsonObject = new JSONObject(str);
                    Type listType = new TypeToken<ArrayList<ListBean>>() {
                    }.getType();

                    return new Gson().fromJson(jsonObject.getString(str), listType);

                } catch (JSONException e) {
                    e.printStackTrace();
                }

                return new ArrayList();


            }

            public TitleBean getTitle() {
                return title;
            }

            public void setTitle(TitleBean title) {
                this.title = title;
            }

            public List<ProductBean> getProduct() {
                return product;
            }

            public void setProduct(List<ProductBean> product) {
                this.product = product;
            }

            public static class TitleBean {
                private String id;
                private String name;
                private String endtime;
                private String image;

                public static TitleBean objectFromData(String str) {

                    return new Gson().fromJson(str, TitleBean.class);
                }

                public static TitleBean objectFromData(String str, String key) {

                    try {
                        JSONObject jsonObject = new JSONObject(str);

                        return new Gson().fromJson(jsonObject.getString(str), TitleBean.class);
                    } catch (JSONException e) {
                        e.printStackTrace();
                    }

                    return null;
                }

                public static List<TitleBean> arrayTitleBeanFromData(String str) {

                    Type listType = new TypeToken<ArrayList<TitleBean>>() {
                    }.getType();

                    return new Gson().fromJson(str, listType);
                }

                public static List<TitleBean> arrayTitleBeanFromData(String str, String key) {

                    try {
                        JSONObject jsonObject = new JSONObject(str);
                        Type listType = new TypeToken<ArrayList<TitleBean>>() {
                        }.getType();

                        return new Gson().fromJson(jsonObject.getString(str), listType);

                    } catch (JSONException e) {
                        e.printStackTrace();
                    }

                    return new ArrayList();


                }

                public String getId() {
                    return id;
                }

                public void setId(String id) {
                    this.id = id;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public String getEndtime() {
                    return endtime;
                }

                public void setEndtime(String endtime) {
                    this.endtime = endtime;
                }

                public String getImage() {
                    return image;
                }

                public void setImage(String image) {
                    this.image = image;
                }
            }

            public static class ProductBean {
                private double now_price;
                private double old_price;
                private String price_name;
                private String name;
                private int wcid;
                private int id;
                private int display;
                private int pvId;
                private String weight;
                private double pv_weight;
                private boolean p_standard;
                private double pvper_price;
                private String image;

                public static ProductBean objectFromData(String str) {

                    return new Gson().fromJson(str, ProductBean.class);
                }

                public static ProductBean objectFromData(String str, String key) {

                    try {
                        JSONObject jsonObject = new JSONObject(str);

                        return new Gson().fromJson(jsonObject.getString(str), ProductBean.class);
                    } catch (JSONException e) {
                        e.printStackTrace();
                    }

                    return null;
                }

                public static List<ProductBean> arrayProductBeanFromData(String str) {

                    Type listType = new TypeToken<ArrayList<ProductBean>>() {
                    }.getType();

                    return new Gson().fromJson(str, listType);
                }

                public static List<ProductBean> arrayProductBeanFromData(String str, String key) {

                    try {
                        JSONObject jsonObject = new JSONObject(str);
                        Type listType = new TypeToken<ArrayList<ProductBean>>() {
                        }.getType();

                        return new Gson().fromJson(jsonObject.getString(str), listType);

                    } catch (JSONException e) {
                        e.printStackTrace();
                    }

                    return new ArrayList();


                }

                public double getNow_price() {
                    return now_price;
                }

                public void setNow_price(double now_price) {
                    this.now_price = now_price;
                }

                public double getOld_price() {
                    return old_price;
                }

                public void setOld_price(double old_price) {
                    this.old_price = old_price;
                }

                public String getPrice_name() {
                    return price_name;
                }

                public void setPrice_name(String price_name) {
                    this.price_name = price_name;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public int getWcid() {
                    return wcid;
                }

                public void setWcid(int wcid) {
                    this.wcid = wcid;
                }

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public int getDisplay() {
                    return display;
                }

                public void setDisplay(int display) {
                    this.display = display;
                }

                public int getPvId() {
                    return pvId;
                }

                public void setPvId(int pvId) {
                    this.pvId = pvId;
                }

                public String getWeight() {
                    return weight;
                }

                public void setWeight(String weight) {
                    this.weight = weight;
                }

                public double getPv_weight() {
                    return pv_weight;
                }

                public void setPv_weight(double pv_weight) {
                    this.pv_weight = pv_weight;
                }

                public boolean isP_standard() {
                    return p_standard;
                }

                public void setP_standard(boolean p_standard) {
                    this.p_standard = p_standard;
                }

                public double getPvper_price() {
                    return pvper_price;
                }

                public void setPvper_price(double pvper_price) {
                    this.pvper_price = pvper_price;
                }

                public String getImage() {
                    return image;
                }

                public void setImage(String image) {
                    this.image = image;
                }
            }
        }
    }
}
